<!DOCTYPE html>
<html>
<head>
	<title>作业提交系统</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
	<div class="container">
		<h1>作业提交系统</h1>
		<form>
		
			<input type="text" id="filename"   placeholder="命名示例：张三_第2章笔记"  required><br><br>
			<label>上传文件：</label>
			<input type="file" id="file" required><br><br>
				<input type="button" value="提交" onclick="submitFile()">
		</form>
		<div id="status"></div>
		<div id="fileList"></div>
	</div>
	<script src="script.js"></script>
	
	
	<script>
		//禁用右键（防止右键查看源代码） 
		window.oncontextmenu = function () { return false; }
		//禁止任何键盘敲击事件（防止F12和shift+ctrl+i调起开发者工具） 
		window.onkeydown = window.onkeyup = window.onkeypress = function () {
			window.event.returnValue = false;
			return false;
		}
		//如果用户在工具栏调起开发者工具，那么判断浏览器的可视高度和可视宽度是否有改变，如有改变则关闭本页面 
		var h = window.innerHeight, w = window.innerWidth;
		window.onresize = function () {
			if (h != window.innerHeight || w != window.innerWidth) {
				window.close();
				window.location = "about:blank";
			}
		}
	</script>
	
	
</body>
</html>
